#include <bits/stdc++.h>

using namespace std;

int main(int argc, char const *argv[])
{
    int n;scanf("%d", &n);
    static int a[1010];
    for (int i = 0 ; i < n ; ++i)
    {
        int num;scanf("%d", &num);
        a[num]++;
        printf("%d%c", a[num],i==n-1?'\n':' ');
    }
	return 0;
}